package com.campus.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.campus.entity.Clazz.Clazz;
import com.campus.entity.Honor.Honor;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 学生表
 *
 * @author Alaskaboo
 * @TableName t_student
 * @since 2022-10-23 14:42:37
 */
@TableName(value = "t_student")
@Data
public class Student implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 学号
     */
    @TableField(value = "account")
    private String account;
    /**
     * 姓名
     */
    @TableField(value = "name")
    private String name;
    /**
     * 身份证号码
     */
    @TableField(value = "identity")
    private String identity;
    /**
     * 用户性别（0男，1女，2未知）
     */
    @TableField(value = "sex")
    private String sex;
    /**
     * 寝室
     */
    @TableField(value = "bedroom")
    private String bedroom;
    /**
     * 老师
     */
    @TableField(value = "teacher")
    private String teacher;
    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;
    /**
     * 手机号
     */
    @TableField(value = "tel")
    private String tel;
    /**
     * 父母名
     */
    @TableField(value = "parents_name")
    private String parentsName;
    /**
     * 父母电话
     */
    @TableField(value = "parents_tel")
    private String parentsTel;
    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;
    /**
     * 删除标志（0代表未删除，1代表已删除）
     */
    @TableLogic
    @TableField(value = "del_flag")
    private Integer delFlag;

    @TableField(exist = false)
    private List<Clazz> clazzList;

    @TableField(exist = false)
    private List<Honor> honorList;
}